﻿<?xml version="1.0" encoding="UTF-8"?>
<!-- Genere une requete DASL a partir d'un noeud DASLProp.
	parametres : 
			- upnode  : noeud d'entree
			- depth   : profondeur de la recherche 
  -->
<dasl:query xmlns:dasl="http://cocoon.apache.org/webdav/dasl/1.0" target="webdav://localhost:8080/slide/files/publications/">
 	<D:searchrequest xmlns:D="DAV:">
 		<D:basicsearch>
 			<D:select> 
				<D:allprop/> 
			</D:select> 
			<D:from>
 				<D:scope>
 					<D:href>/<substitute-value name="upnode"/>/</D:href> 
 					<D:depth><substitute-value name="depth"/></D:depth>
				</D:scope>
			</D:from>
			<D:where>
				<D:eq>
					<D:prop>
						<D:getcontenttype/>
					</D:prop>
					<D:literal>text/html</D:literal>
				</D:eq>
			</D:where>
			<D:orderby>
				<D:order>
 					<D:prop><D:getcontentlength/></D:prop>
					<D:ascending/>
				</D:order>
				<D:order>
					<D:prop><D:href/></D:prop>
					<D:ascending/>
				</D:order>
			</D:orderby>
		</D:basicsearch>
	</D:searchrequest>
</dasl:query>